<div class="layui-container md-container" xmlns:th="https://www.thymeleaf.org/">
    <div class="layui-row md-container-header">
        <div class="layui-card">
            <a href="/" class="global-back" title="返回首页"><i class="layui-icon layui-icon-return"></i>&nbsp;返回</a>
<!--            <span class="header-text" th:text="${model.modelName + '-' + model.remark}"></span>-->
            <span class="layui-breadcrumb">
                <a href="/">实体类管理</a>
                <a><cite th:text="${model.modelName}"></cite></a>
            </span>
        </div>
    </div>
    <div class="layui-row layui-col-space10">
        <div class="layui-col-md9">
            <div class="layui-card">
                <div class="layui-card-header">模型明细列表</div>
                <div class="layui-card-body">
                    <div class="layui-btn-container">
                        <button class="layui-btn" id="addPropertyBtn"><i class="layui-icon layui-icon-add-1"></i>添加属性</button>
                        <button class="layui-btn" id="tableConfigBtn"><i class="layui-icon layui-icon-util"></i>配置表</button>
                    </div>
                    <table id="model_detail_table" lay-filter="model_detail"></table>
                </div>
            </div>
        </div>
        <div class="layui-col-md3 md-container-main-right">
            <div class="layui-card" style="padding: 5px; margin-bottom: 10px">
                <table class="layui-table" lay-skin="nob">
                    <tbody>
                    <tr>
                        <td>实体类名</td>
                        <td th:text="${model.modelName}"></td>
                    </tr>
                    <tr>
                        <td>表名</td>
                        <td th:text="${model.tableName}"></td>
                    </tr>
                    <tr>
                        <td>创建人</td>
                        <td th:text="${model.createUser}"></td>
                    </tr>
                    <tr>
                        <td>创建时间</td>
                        <td th:text="${#dates.format(model.createTime, 'yyyy年MM月dd日 HH:mm')}"></td>
                    </tr>
                    <tr>
                        <td>修改时间</td>
                        <td th:text="${#dates.format(model.modifyTime, 'yyyy年MM月dd日 HH:mm')}"></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="optColumn">
    {{# if(d.inherentFlag !== 1) { }}
    <div class="layui-btn-group">
        <a class="layui-btn layui-btn-xs" title="编辑" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" title="删除" lay-event="del">删除</a>
    </div>
    {{# } }}
</script>
<script type="text/javascript" src="/static/js/model_detail.js"></script>